package cn.book.dao;

import java.util.List;

import cn.book.entity.Book;

public interface BookDao {
	/**
	 * 添加图书
	 * @param bookname
	 * @param author
	 * @param publish
	 * @param price
	 * @param currcount
	 * @param picture
	 * @return
	 */
	boolean addBook(String bookname,String author,String publish,int price,int currcount,String picture);
	
	/**
	 * 查询全部图书信息，或者根据条件查询
	 * @param publish
	 * @param currcount
	 * @return
	 */
	List<Book> queryBookList();	
	/**
	 * 根据出版社查询
	 * @param publish
	 * @return
	 */
	
	List<Book> selectPublish(String publish);
	
	/**
	 * 根据当前库存查询
	 * @param currcount
	 * @return
	 */
	List<Book> selectCurrcount(int currcount);
	
	/**
	 * 根据ID删除book
	 * @param bookid
	 * @return
	 */
	boolean deleteBook(int bookid);


}
